set oGrab to Capture(mnew, v1 + the stageTop, h1 + the stageLeft, v2 + the stageTop, h2 + the stageLeft)
set bLleno to 0
repeat with xx = 0 to 100
if xx = 100 then
set bLleno to 1
end if
set sOrden to string(xx)
if xx < 10 then
set sOrden to "0" & sOrden
end if
set sFitxer to sPathIni & "snapshot\vtm_fp" & sOrden & ".BMP"
set oFitxer to fileio(mnew, "read", sFitxer)
if objectp(oFitxer) then
oFitxer(mdispose)
next repeat
end if
if oFitxer = -43 then
set xx to 101
end if
end repeat
closeXLib(sPathIni & "Fileio.dll")
if bLleno then
alert(sMensaje01)
else
oGrab(mSave, sFitxer)
end if
oGrab(mdispose)
closeXLib(sPathIni & "Capture.dll")
end
on coordenadas
put "if the mouseV >= " & the locV of sprite 4 & " and the mouseH >= " & the locH of sprite 4 & " and the mouseV <= " & the locV of sprite 4 + the height of sprite 4 & " and the mouseH <= " & the locH of sprite 4 + the width of sprite 4 & " then"
end
on ayuda sMember
global bAyuda, nIdioma
if bAyuda then
set the member of sprite 47 to member sMember of castLib ("mensajes" & nIdioma)
set the visible of sprite 47 to 1
updateStage()
end if
end
on boton nSprite, sPrefijo, nMaxBolas, sMember
global nContTiempo, bAyuda
if nSprite > 24 then
set nBola to 29
else
set nBola to 23
end if
repeat while rollOver(nSprite) and not (the mouseDown)
if nContTiempo = 0 then
set nContTiempo to the timer
end if
puppetSprite(nBola, 1)
set sMiembro to sPrefijo & "1"
set the member of sprite nBola to member sMiembro of castLib "elementos graficos"
updateStage()
if the timer > (nContTiempo + 80) then
set nCont to 1
set nFactor to 1
repeat while rollOver(nSprite) and not (the mouseDown)
set nCont to nCont + nFactor
if (nCont > nMaxBolas) or (nCont <= 0) then
if nSprite = 22 then
if nCont > nMaxBolas then
set nCont to nMaxBolas - 1
else
set nCont to 2
end if
set nFactor to nFactor * -1
else
set nCont to 1
end if
end if
set sMiembro to sPrefijo & nCont
set the member of sprite nBola to member sMiembro of castLib "elementos graficos"
updateStage()
startTimer()
repeat while rollOver(nSprite) and (the timer < 7)